package ru.agiledev.akb.server.domain;

import javax.persistence.*;

/**
 * Created by a.kirillov
 * Date: 3/29/11 Time: 11:02 PM
 */

@MappedSuperclass()
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class AKBEntity {
    @Column(name = "value", columnDefinition="TEXT")
    public String value;
    /*   This class needed for wiring knowledge base objects to user's actions history  */

    public AKBEntity() {
    }

    public AKBEntity(String value) {
        this.value = value;
    }

    //------------
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o){
        return this.value.equals(o);
    }
}
